package com.web.service;

import com.web.entity.UserInfo;
import com.baomidou.mybatisplus.service.IService;
import com.web.param.AdminLoginDto;
import com.web.param.InsertUserDto;
import com.web.param.UpdatePasswordDto;
import com.web.util.LoginException;
import com.web.util.ServiceException;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hgjxyz
 * @since 2020-11-18
 */
public interface IUserInfoService extends IService<UserInfo> {

    void addUser(InsertUserDto dto)throws ServiceException, LoginException;

    UserInfo login(AdminLoginDto dto)throws ServiceException;

    void updatePassword(UpdatePasswordDto dto)throws ServiceException, LoginException;
}
